package com.ruoyi.business.api;


import com.ruoyi.business.api.domain.Shop;
import com.ruoyi.common.core.constant.SecurityConstants;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.common.core.web.page.TableDataInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * 店铺Feign
 * 
 * @author zsq
 * @date 2024-09-11
 */
@FeignClient(value="ruoyi-business")
public interface ShopService
{
    
    /**
     * 查询店铺列表
     */

    @GetMapping("/shop/list")
    public TableDataInfo list(Shop shop);


    /**
     * 获取店铺详细信息
     */

    @GetMapping(value = "/shop/{id}")
    public AjaxResult getInfo(@PathVariable("id") Long id);

    /**
     * 新增店铺
     */

    @PostMapping("/shop")
    public AjaxResult add(@RequestBody Shop shop);

    /**
     * 修改店铺
     */

    @PutMapping("/shop")
    public AjaxResult edit(@RequestBody Shop shop);

    /**
     * 删除店铺
     */

	@DeleteMapping("/shop/{ids}")
    public AjaxResult remove(@PathVariable("ids") Long[] ids);
}
